package com.cyzy.service.impl;

import com.cyzy.mapper.MainMapper;
import com.cyzy.pojo.*;
import com.cyzy.service.MainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zxw
 * @create 2025-05-26 下午4:07
 */
@Service
public class MainServiceImpl implements MainService {
    @Autowired
    private MainMapper mainMapper;

    @Override
    public List<Column> getColumnList(String campusId) {
        return mainMapper.selectColumn(campusId);
    }

    @Override
    public List<Activity> selectActivity(String campusId) {
        return mainMapper.selectActivity(campusId);
    }

    @Override
    public List<Course> selectCourse(String campusId) {
        return mainMapper.selectCourse(campusId);
    }

    @Override
    public List<Seckill> selectSeckill(String campusId) {
        return mainMapper.selectSeckill(campusId);
    }

    @Override
    public List<Banner> selectBanner(String campusId) {
        return mainMapper.selectBanner(campusId);
    }



}
